package club.janna.hello.frame;

import java.util.List;

/**
 * GDW 376.1 帧
 * Created by guopanbo on 18/4/9.
 */
public class GDW376D1 {
    /**
     * 起始
     */
    private Byte start;
    /**
     * 长度
     */
    private Integer length;
    /**
     * 长度
     */
    private Integer length1;
    /**
     * 起始
     */
    private Byte start1;
    /**
     * 控制域
     */
    private Short ctl;
    /**
     * 行政区划编码
     */
    private Integer areaCode;
    /**
     * 终端地址
     */
    private Integer address;
    /**
     * 主站地址和组地址标志A3
     */
    private Short addressMark;

    /**
     * 应用功能编码
     */
    private Short afn;
    /**
     * 帧序列域seq
     */
    private Short seq;

    /**
     * 数据域
     */
    private List<DataUnit> dataUnits;

    /**
     * 数据域-存放
     */
    private int[] data;

    /**
     * 附加信息域
     */
    private Aux aux;

    /**
     * 待确认应用功能码
     */
    private Short cAfc;
    /**
     * 待确认数据单元标识
     */
    private List<DataUnit> cDataUnits;
    /**
     * 待确认数据单元err
     */
    private Short cErr;
    /**
     * 校验位
     */
    private Short crc;
    /**
     * 结束
     */
    private Byte end;

    public Byte getStart() {
        return start;
    }

    public void setStart(Byte start) {
        this.start = start;
    }

    public Integer getLength() {
        return length;
    }

    public void setLength(Integer length) {
        this.length = length;
    }

    public Integer getLength1() {
        return length1;
    }

    public void setLength1(Integer length1) {
        this.length1 = length1;
    }

    public Byte getStart1() {
        return start1;
    }

    public void setStart1(Byte start1) {
        this.start1 = start1;
    }

    public Short getCtl() {
        return ctl;
    }

    public void setCtl(Short ctl) {
        this.ctl = ctl;
    }

    public Integer getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(Integer areaCode) {
        this.areaCode = areaCode;
    }

    public Integer getAddress() {
        return address;
    }

    public void setAddress(Integer address) {
        this.address = address;
    }

    public Short getAddressMark() {
        return addressMark;
    }

    public void setAddressMark(Short addressMark) {
        this.addressMark = addressMark;
    }

    public Short getAfn() {
        return afn;
    }

    public void setAfn(Short afn) {
        this.afn = afn;
    }

    public Short getSeq() {
        return seq;
    }

    public void setSeq(Short seq) {
        this.seq = seq;
    }

    public List<DataUnit> getDataUnits() {
        return dataUnits;
    }

    public void setDataUnits(List<DataUnit> dataUnits) {
        this.dataUnits = dataUnits;
    }

    public Aux getAux() {
        return aux;
    }

    public void setAux(Aux aux) {
        this.aux = aux;
    }

    public Short getcAfc() {
        return cAfc;
    }

    public void setcAfc(Short cAfc) {
        this.cAfc = cAfc;
    }

    public List<DataUnit> getcDataUnits() {
        return cDataUnits;
    }

    public void setcDataUnits(List<DataUnit> cDataUnits) {
        this.cDataUnits = cDataUnits;
    }

    public Short getcErr() {
        return cErr;
    }

    public void setcErr(Short cErr) {
        this.cErr = cErr;
    }

    public Short getCrc() {
        return crc;
    }

    public void setCrc(Short crc) {
        this.crc = crc;
    }

    public Byte getEnd() {
        return end;
    }

    public void setEnd(Byte end) {
        this.end = end;
    }

    public int[] getData() {
        return data;
    }

    public void setData(int[] data) {
        this.data = data;
    }
}
